package cn.hls.entity.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @fileName: PageInfo.java
 * @package: cn.christ.entity.vo
 * @Description: ���ݷ�ҳʵ����
 * @author: yinghui.zhang
 * @email: uuhui@163.com
 * @date: 2015-7-6
 */
public class PageInfo<T> implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 起始页
	private int start = 0;
	// 每页限制数据数
	private int limit = 30;
	// 总数
	private Long results;
	// 数据集合
	private List<T> list = new ArrayList<T>();
	// 错误内容
	public String error;
	public boolean success = true;

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public Long getResults() {
		return results;
	}

	public void setResults(Long results) {
		this.results = results;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

}
